import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import toast from 'components/common/toast'
import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

Vue.config.productionTip = false


//解决移动端300ms延迟
FastClick.attach(document.body)

// 使用自己封装的toast插件
Vue.use(toast)

//安装懒加载插件
Vue.use(VueLazyLoad, {
  // 指定懒加载时候显示的背景图片，需要使用require引入
  // loading: require('./assets/img/common/placeholder.png')
})


Vue.prototype.$bus = new Vue()

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
